import request from '@/utils/request'

// 获取评论列表
export function getCommentList(params) {
    return request({
        url: `/youlai-system/comment/list/${params}`,
        method: 'get',
    })
}
// 添加评论
export function addComment(data) {
    return request({
        url: '/youlai-system/comment/save',
        method: 'post',
        data,
    })
}
// 删除评论
export function deleteComment(params) {
    return request({
        url: '/comment/deleteComment',
        method: 'post',
        data: params
    })
}